/**
 * 自调用函数
 */
(function () {
    
    var n = 3.1415926
    console.log(n.toFixed);
    console.log(Math.log(2));
    console.log(Math.sqrt(16));
    
    var b = Math.random();
    console.log(b);
    console.log(b.toFixed(3));
    console.log(Math.max(5,10));
    console.log(Math.min(5,10));
})();


/**
 * 
 
function echoStr() {
    document.write("JS出现一次");
}setTimeout(echoStr,1000);

function setInter() {
    document.write("JS一直出现\n");
}setInterval(setInter, 3000)

*/





